﻿using Microsoft.AspNetCore.Components.Authorization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BBCore.Application.Interface
{
    /// <summary>
    /// 获取当前登录用户的用户名
    /// </summary>
    public interface IGetLoginUserNameService
    {
        /// <summary>
        /// 获取当前登录用户的用户名异步方法
        /// </summary>
        /// <param name="authStateProvider">AuthenticationStateProvider提供有关当前用户的身份验证状态的信息</param>
        /// <returns>存在则返回用户名,否则是""</returns>
        Task<string> GetLoginUserNameAsync(AuthenticationStateProvider authStateProvider);
        
    }
}
